﻿using PurchaseSales.Manage.Model.Entities;
using PurchaseSales.Manage.Services;

namespace PurchaseSales.Manage.Repositories
{
    public class SupplierRepository : Repository<Supplier>, ISupplierRepository
    {
        public void Save(Supplier supplier)
        {
            Session.SaveOrUpdate(supplier);
            Session.Flush();
        }

        public void Deleted(Supplier supplier)
        {
            Session.Delete(supplier);
            Session.Flush();
        }
    }
}